using System;
namespace ServiceStack.DataAnnotations
{
	public class RangeAttribute : AttributeBase
	{
		public object Minimum
		{
			get;
			private set;
		}
		public object Maximum
		{
			get;
			private set;
		}
		public Type OperandType
		{
			get;
			private set;
		}
		public RangeAttribute(int minimum, int maximum)
		{
			this.OperandType = typeof(int);
			this.Minimum = minimum;
			this.Maximum = maximum;
		}
		public RangeAttribute(double minimum, double maximum)
		{
			this.OperandType = typeof(double);
			this.Minimum = minimum;
			this.Maximum = maximum;
		}
		public RangeAttribute(Type type, string minimum, string maximum)
		{
			this.OperandType = type;
			this.Minimum = minimum;
			this.Maximum = maximum;
		}
	}
}
